#ac

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := game


# Add any compilation flags for your project here...
LOCAL_CFLAGS := \
	-fexceptions \
	-frtti \
	-Wno-deprecated

LOCAL_CPP_EXTENSION := .cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../src \
$(LOCAL_PATH)/../../../../extern \
$(LOCAL_PATH)/../../../../demos/mt5 \
$(LOCAL_PATH)/../../../../extern/SDL2/include \

LOCAL_STATIC_LIBRARIES :=  sleipner_all gnustl_static jpeg png freetype SDL2

LOCAL_SHARED_LIBRARIES :=  prebuild_bass 

LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,, \
$(wildcard $(LOCAL_PATH)/../../../../demos/mt5/*.cpp))

# we don't want to build main.cpp coz it is build by main.so
LOCAL_SRC_FILES := $(filter-out $(LOCAL_PATH)/../../../../demos/mt5/main.cpp, $(LOCAL_SRC_FILES))
    
#LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -lz

LOCAL_CPPFLAGS += -std=c++11


include $(BUILD_STATIC_LIBRARY)
